package com.darling.danotebackend.constant;


/**
 * @author zheng
 */
public final class FileConstant {

    private FileConstant() {
    }

    public static final long UNIT = 1024L;
    public static final long KB = UNIT;
    public static final long MB = UNIT * UNIT;
    public static final long GB = UNIT * UNIT * UNIT;
    public static final long TB = UNIT * UNIT * UNIT * UNIT;

    public static long kbToBytes(int n) {
        return n * KB;
    }

    public static long mbToBytes(int n) {
        return n * MB;
    }

    public static long gbToBytes(int n) {
        return n * GB;
    }

    public static long tbToBytes(int n) {
        return n * TB;
    }


}
